# QT有一个启动类，QApplication
from PyQt5.QtWidgets import QApplication
import sys
from Pages.LoginPage import LoginPage
from Pages.ManagementPage import ManagePage
from Pages.UserManagementPage import UserManagementPage
from Pages.ResetPasswordPage import ResetPasswordPage
from Pages.UserMainPage import UserMainPage

if __name__ == "__main__":

    app = QApplication(sys.argv)      # 实例化QT的应用类，启动的时候可以传递参数，sys.argv就是把命令行启动的时候的参数传递给QApplication对象，默认为空
    # login_page = LoginPage()  # 我们想要弹出的界面
    # login_page.show()
    # user_main_page = UserMainPage()
    # user_main_page.show()
    # manage_page = ManagePage()
    # manage_page.show()
    usermanagement = UserManagementPage()
    usermanagement.show()
    # reset_page = ResetPasswordPage()
    # reset_page.show()

    app.exec_()  # 阻塞程序，防止提前退出
